﻿#ifndef _RWA_H_
#define _RWA_H_

#include "sock.h"
#include "nlist.h"

typedef struct _raw_t
{
    sock_t base;
    sock_wait_t recv_wait;
    nlist_t recv_list; // 用于存放socket收到的数据包
} raw_t;

net_err_t raw_init();
sock_t *raw_create(int family, int protocol);
net_err_t raw_in(pktbuf_t *buf);

#endif